﻿using ModernShopping.AppCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ModernShopping
{
    public partial class Search : System.Web.UI.Page
    {
        protected override void OnInit(EventArgs e)
        {
            if (Request.QueryString["Keywords"] == null)
            {
                Response.GoToAccessDeniedPage(Request);
            }
            base.OnInit(e);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string Keywords = Request.QueryString["Keywords"];
                DbProduct.initDatalist(dlProduct, CollectionPager, Keywords);
            }
        }
    }
}